//
//  DataBase.h
//  UILesson19 - SQLite
//
//  Created by lanou3g on 16/1/8.
//  Copyright © 2016年 徐强. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Student.h"
#import <sqlite3.h>
@interface DataBase : NSObject

+ (DataBase *)shareDB;

//打开数据库
- (void)openDB;

//关闭数据库
- (void)closeDB;

 //数据库的基本操作：增、删、改、查
- (void)addStudent:(Student *)stu;
- (void)deleteStudentWithNumber:(NSInteger )num;
- (void)updateStudent:(Student *)stu;
- (NSMutableArray *)selectAllStudent;

@end
